package com.eedi.framework.user.controller.org.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

import javax.validation.constraints.NotNull;

@Schema(description = "经营管理 - 创建账号 Request VO")
@Data
public class OrgUserAccountCreateReq {

    /**
     * 用户登录名
     */
    @Schema(description = "用户登录名", example = "zhangSan")
    private String orgUserLoginId;
    /**
     * 昵称
     */
    @Schema(description = "用户昵称", example = "小胖孩")
    private String orgUserName;
    /**
     * 手机
     */
    @Schema(description = "用户手机号", example = "15601691300")
    @NotNull(message = "用户手机号不能为空")
    private String orgUserMobile;
    /**
     * 加密后的密码
     * 因为目前使用 {@link BCryptPasswordEncoder} 加密器，所以无需自己处理 salt 盐
     */
    @Schema(description = "用户密码", example = "zhangSan_123")
    private String orgUserPassword;

    /**
     * 用户证件号码
     */
    @Schema(description = "身份证号", example = "6127011985112706542")
    String orgUserCertNo;

    /**
     * 用户所在部门ID
     */
    @Schema(description = "部门ID", example = "18299933455555")
    String orgDeptId;

    private String orgInfoId;


}
